package com.itbaizhan.mapper;

import com.itbaizhan.pojo.Classes;

import java.util.List;

public interface ClassesMapper {
    //一对多关系
    List<Classes> findAll();
    //查询班级中的学生与老师       classes_teacher是中间表
    /*select * from classes left join
    student on classes.cid = student.sid
    left join classes_teacher on classes.cid = classes_teacher.cid
    left join teacher on teacher.tid = classes_teacher.tid*/
    List<Classes> findAll2();



}
